#define _CRT_SECURE_NO_WARNINGS
class Solution {
public:
    int countEven(int num) {
        int i = 1, sum = 0;
        while (i <= num)
        {
            int j = i, count = 0;
            while (j)
            {
                count += j % 10;
                j /= 10;
            }
            if (count % 2 == 0)
            {
                sum++;
            }
            i++;
        }
        return sum;
    }


};


int main()
{

    return 0;
}